from django.urls import path
from .views import device_list,export_to_csv, admin_list, admin_updata, admin_delete, admin_register, device_register, device_detail, \
    device_search, device_delete, device_updata

app_name = 'device'


urlpatterns = [
    path('deviceinfo/create/', device_register, name='device_register'),
    path('deviceinfo/<int:pk>/updata/', device_updata, name='device_updata'),
    path('deviceinfo/<int:pk>/delete/', device_delete, name='device_delete'),
    path('device_list/',device_list,name="device_list"),
    path('deviceinfo/<int:pk>/',device_detail,name="device_detail"),
    path('deviceinfo/search/', device_search, name='device_search'),
    path('deviceinfo/export_to_cvs/', export_to_csv, name='export_to_csv'),
    path('admininfo/admin_list/', admin_list, name='admin_list'),
    path('admininfo/<int:pk>/admin_updata/', admin_updata, name='admin_updata'),
    path('admininfo/<int:pk>/admin_delete/', admin_delete, name='admin_delete'),
    path('admininfo/admin_register', admin_register, name='admin_register'),
]